import UserFrame from '@/components/UserFrame'
import Profile from '@/components/Profile'
import MyCourse from '@/components/MyCourse'
import Work from '@/components/Work'
import CreateWork from '@/components/CreateWork'
import ManageStu from '@/components/ManageStu'
import QuestionInfo from '@/components/QuestionInfo'

export default {
  path: '/user',
  component: UserFrame,
  children: [{
    path: '/',
    name: 'profile',
    component: Profile,
    alias: 'profile'
  }, {
    path: 'mycourse',
    name: 'mycourse',
    component: MyCourse
  }, {
    path: 'work',
    name: 'work',
    component: Work
  }, {
    path: 'creatework',
    name: 'createWork',
    component: CreateWork
  }, {
    path: 'managestu/:courseId',
    name: 'managestu',
    component: ManageStu,
    props: true
  }, {
    path: 'question/:questionId/:questionType/:text',
    name: 'question',
    component: QuestionInfo,
    props: true
  }]
}
